/**
 * @description: Login interface parameters
 */
export interface LoginParams {
  loginName: string;
  password: string;
  captcha: string;
  code: string;
}

/**
 * @description: Login interface return value
 */
export interface LoginResultModel {
  userId: string | number;
  token: string;
  roles: Array<string>;
  codes: Array<string>;
}

/**
 * @description: Get user information return value
 */
export interface GetUserInfoModel {
  // 用户id
  userId: string | number;
  // 用户名
  loginName: string;
  // 凭证
  token?: string;
  // 过期时间
  expiredAt?: string;
  // 角色
  roles: Array<string>;
  // 权限
  codes: Array<string>;
  // 菜单
  menus: Array<any>;
  // WebSocket地址
  wsUrl: string;
}

/**
 * @description: Get captcha information return value
 */
export interface GetCaptchaModel {
  captcha: string;
  code: string;
}
